package com.ymttest.database.sqlwapper.shenqisettlement;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.shenqisettlement.DistributorOfflineMonthBillTask;

public class DistributorOfflineMonthBillTaskWrapper {
	
	SqlManager manager;

	public DistributorOfflineMonthBillTaskWrapper() {
		manager = new SqlManager("shenqisettlement");
	}

	@SuppressWarnings("unchecked")
	public DistributorOfflineMonthBillTask selectByPrimaryKey(Long id) {

		DistributorOfflineMonthBillTask distributorOfflineMonthBillTask = null;
		List<DistributorOfflineMonthBillTask> result = manager
				.getSelectResults(
						"com.ymttest.database.mapping.shenqisettlement.DistributorOfflineMonthBillTaskMapper.selectByPrimaryKey",
						id);
		manager.commit();

		if (result.size() > 0) {
			distributorOfflineMonthBillTask = result.get(0);
		}

		return distributorOfflineMonthBillTask;
	}
	
	public static void main(String[] args) {
		
		DistributorOfflineMonthBillTaskWrapper test = new DistributorOfflineMonthBillTaskWrapper();

		System.out.println(test.selectByPrimaryKey(1L));
	}
}
